package com.fdd.op.sdk.request.api.contract.manual;

import com.fdd.op.sdk.ApiRuleException;
import com.fdd.op.sdk.BaseFddRequest;
import com.fdd.op.sdk.constants.Constants;
import com.fdd.op.sdk.internal.mapping.RequestField;
import com.fdd.op.sdk.response.api.contract.manual.GetSignUrlResponse;

import java.util.Map;

public class GetSignUrlRequest extends BaseFddRequest<GetSignUrlResponse> {
    @Override
    public String getApiMethodName() {
        return "/base/api/contract/manual/getSignUrl";
    }

    @Override
    public Map<String, Object> getTextParams() {
        return null;
    }

    @Override
    public Class<GetSignUrlResponse> getResponseClass() {
        return GetSignUrlResponse.class;
    }

    @Override
    public void check() throws ApiRuleException {

    }

    @Override
    public String getHttpMethod() {
        return Constants.METHOD_POST;
    }

    @RequestField
    private String docId;

    @RequestField
    private String tpDocId;

    @RequestField
    private String signerAccountId;

    @RequestField
    private String tpSignerAccountId;

    @RequestField
    private String notifyNo;

    @RequestField
    private Integer accessType;

    @RequestField
    private String accessCode;

    @RequestField
    private Integer urlTimeOut;

    public String getDocId() {
        return docId;
    }

    public void setDocId(String docId) {
        this.docId = docId;
    }

    public String getTpDocId() {
        return tpDocId;
    }

    public void setTpDocId(String tpDocId) {
        this.tpDocId = tpDocId;
    }

    public String getSignerAccountId() {
        return signerAccountId;
    }

    public void setSignerAccountId(String signerAccountId) {
        this.signerAccountId = signerAccountId;
    }

    public String getTpSignerAccountId() {
        return tpSignerAccountId;
    }

    public void setTpSignerAccountId(String tpSignerAccountId) {
        this.tpSignerAccountId = tpSignerAccountId;
    }

    public String getNotifyNo() {
        return notifyNo;
    }

    public void setNotifyNo(String notifyNo) {
        this.notifyNo = notifyNo;
    }

    public Integer getAccessType() {
        return accessType;
    }

    public void setAccessType(Integer accessType) {
        this.accessType = accessType;
    }

    public String getAccessCode() {
        return accessCode;
    }

    public void setAccessCode(String accessCode) {
        this.accessCode = accessCode;
    }

    public Integer getUrlTimeOut() {
        return urlTimeOut;
    }

    public void setUrlTimeOut(Integer urlTimeOut) {
        this.urlTimeOut = urlTimeOut;
    }
}
